package invalidosgibusinessservicedependency;

import invalidosgibusinessservicedependency.InvalidOSGiBusinessServiceDependencyMatch;
import org.eclipse.viatra2.emf.incquery.runtime.api.IMatchProcessor;
import sysmodel.BusinessService;
import sysmodel.OSGiBusinessService;

/**
 * A match processor tailored for the InvalidOSGiBusinessServiceDependency pattern.
 * 
 * Clients should derive an (anonymous) class that implements the abstract process().
 * 
 */
public abstract class InvalidOSGiBusinessServiceDependencyProcessor implements IMatchProcessor<InvalidOSGiBusinessServiceDependencyMatch> {
  /**
   * Defines the action that is to be executed on each match.
   * @param pOsgiService the value of pattern parameter osgiService in the currently processed match 
   * @param pOtherService the value of pattern parameter otherService in the currently processed match 
   * 
   */
  public abstract void process(final OSGiBusinessService osgiService, final BusinessService otherService);
  
  @Override
  public void process(final InvalidOSGiBusinessServiceDependencyMatch match) {
    process(match.getOsgiService(), match.getOtherService());  				
    
  }
}
